package com.gmq.chapter01.suspend;

/**
 * Created by gmq on 2017/08/10.
 *
 * @version 1.0
 * @since 2017/08/10 14:47
 */
public class SuspendLockRun {

    public static void main(String[] args) {

        try {

            SuspendLockThread thread = new SuspendLockThread();
            thread.start();
            Thread.sleep(1000);

            thread.suspend();

            System.out.println("main end");

        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
